package com.codeZ.FlyweightPattern.example;

/**
 * 非共享享元实体类
 *
 * @author codeZhang
 * @Date 2024/8/16 09:20
 */
public class UnsharedConcreteFlyweight extends Flyweight {

    private final String intrinsicState;

    public UnsharedConcreteFlyweight(String intrinsicState) {
        this.intrinsicState = intrinsicState;
    }

    @Override
    public void operation(String extrinsicState) {
        System.out.println("UnsharedConcreteFlyweight: " + intrinsicState + " " + extrinsicState);
    }
}
